local thbattle__zaomiao_shenyi = fk.CreateSkill {

  name = "thbattle__zaomiao_shenyi",

  tags = {  },

}



thbattle__zaomiao_shenyi:addEffect(fk.TargetConfirmed, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(thbattle__zaomiao_shenyi.name) and data.card and data.card.type == Card.TypeTrick and
        data.card.multiple_targets == true and
        target == player
  end,
  on_cost = function(self, event, target, player, data)
    local cost_card = player.room:askForCard(player, 1, 1, true, thbattle__zaomiao_shenyi.name, true, ".",
      "#thbattle__zaomiao_shenyi-invokeSkill:::" .. data.card:toLogString())
    event:setCostData(self, cost_card)
    return #cost_card > 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:recastCard(event:getCostData(self), player, thbattle__zaomiao_shenyi.name)
    data:cancelTarget(player)
  end,
})

return thbattle__zaomiao_shenyi